<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>index</title>
</head>
<body>
 index
 <label style="padding-left: 90%"></label>
 <button onclick="logout()">退出</sytbutton>
</body>
<script src="js/jquery-3.6.0.js"></script>
<script type="text/javascript">
    function logout() {
        var r = confirm("是否确认退出系统？");
        if (r==true){
            alert("exit now!");
            $.ajax({path:"logout",type:"GET"});
        } else {
            alert("exit later!")
        }
    }
</script>
</html>